<template>
  <div class="reminder" v-if="isShow">
    <p class="info">
      <b>{{ title }}：</b>{{ msg
      }}<i class="el-icon-close" @click="showNotice"></i>
    </p>
  </div>
</template>

<script>
export default {
  name: "notice",
  data() {
    return {
      isShow: true
    };
  },
  props: {
    title: {
      type: String,
      default: "提示"
    },
    msg: {
      type: String,
      default: "疫情期间幼儿园报名入学时间延迟，具体时间另行通知。"
    }
  },
  methods: {
    showNotice() {
      this.isShow = false;
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
.reminder {
  position: relative;
  margin: 0 10px 15px;
  padding: 0 10px;
  background: #f0f0f0;
  border-radius: 5px;
  .info {
    line-height: 32px;
  }
  b {
    color: $ftRed;
  }
  .el-icon-close {
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -7px;
    cursor: pointer;
  }
}
</style>
